{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		移动端
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb1}
		</small>
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			代理审核
		</small>
	</h1>
</div>
<div class="row">
	<div class="col-xs-12">	
		<form class="form-horizontal"  id="validation-form" method="post" action='{:url("AgentBackend/pass")}'>
			

			
			<?php if(!isset($apply)){ ?>			
			
			<input name="aa_id" type="hidden" value="{$Request.param.id}" />
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left"> * 代理级别 </label>
			<div class="col-sm-10">
				<div class="clearfix">
					<select  class="form-control" name="agent_level">
						{volist name="level" id="v"}
							<option  value="{$v.al_id}">{$v.name}</option>
						{/volist}
					</select>
				</div>
			</div>
			</div>
			<div class="space-4"></div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left"> 审核</label>
			<div class="col-sm-10">
				<div class="clearfix">
					<label class="radio-inline">
						<input name="status" type="radio" value="1" /> 通过
					</label>
					<label class="radio-inline">
						<input name="status" type="radio" value="2"  /> 拒绝
					</label>
				</div>
			</div>
			</div>
			<div class="space-4"></div>
			<?php } ?>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left"> 未通过原因</label>
			<div class="col-sm-10">
				<div class="clearfix">
					<textarea class="form-control" rows="5" name="answer">{$apply.answer|default=''}</textarea>
				</div>
			</div>
			</div>
			<div class="space-4"></div>
			<?php if(!isset($apply)){ ?>
			<div class="form-group">
				<label class="col-sm-1 control-label no-padding-left"> </label>	
				<div class="col-sm-11">
					<input name="send" type="submit" value="提交" class="btn btn-primary" />
				</div>
			</div>
			<?php } ?>
		</form>
	</div>
</div>
{/block}
